﻿<Page x:Class="Woodlands.StudentWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="550" d:DesignWidth="1360"
	Title="StudentWindow">
    <Grid Name="mainContent">
        <TabControl Height="550" FontSize="14" x:Name="subMenu" VerticalAlignment="Top" BorderBrush="Teal" Background="#FFF5F5CB">
            <TabItem GotFocus="tab_GotFocus" Header="Create" x:Name="create" Background="#FFF5F5CB">
                <Grid x:Name="createGrid" Background="#FFF5F5CB">
                    <Label Content="Create a Student" Height="46" HorizontalAlignment="Left" Margin="8,8,0,0" x:Name="studentCreation" VerticalAlignment="Top" FontWeight="Bold" FontSize="30" Width="268" />
                    <GroupBox Header="DetailsLabel" BorderBrush="Teal" HorizontalAlignment="Left" Margin="8,58,0,0" VerticalAlignment="Top" Height="250" Width="392" FontWeight="Bold">
                        <Grid>
                            <Label Content="Student ID:" Height="30" HorizontalAlignment="left" x:Name="createStudentIDLabel" VerticalAlignment="Top" FontWeight="Bold" Foreground="Teal" Width="86" Margin="8,9,0,0" />
                            <TextBox Height="22" IsEnabled="False" x:Name="createStudentIDTxt" VerticalAlignment="Top" HorizontalAlignment="Left" Width="208" Margin="139,12,0,0" />
                            <Label Content="First Name:" Height="28" HorizontalAlignment="Left" Margin="8,43,0,0" x:Name="createStudentFNameLabel" VerticalAlignment="Top" FontSize="14" FontWeight="Normal"/>
                            <TextBox KeyUp="name_KeyUp" Height="23" HorizontalAlignment="Left" Margin="139,48,0,0" x:Name="createStudentFNameTxt" VerticalAlignment="Top" Width="207" />
                            <Label Content="Middle Name(s):" Height="28" HorizontalAlignment="Left" x:Name="createStudentMNameLabel" VerticalAlignment="Top" FontSize="14" Margin="8,75,0,0" FontWeight="Normal"/>
                            <TextBox Height="23" HorizontalAlignment="Left"  x:Name="createStudentMNameTxt" VerticalAlignment="Top" Width="207" Margin="140,80,0,0" />
                            <Label Content="Surname:" Height="30" HorizontalAlignment="left" x:Name="createStudentLastNameLabel" VerticalAlignment="Top" Margin="8,107,0,0" FontWeight="Normal" />
                            <TextBox KeyUp="name_KeyUp" Height="23" HorizontalAlignment="Left" x:Name="createStudentLastNameTxt" VerticalAlignment="Top" Width="207" Margin="140,114,0,0" />
                            <Label Content="D.O.B:" HorizontalAlignment="Left" Margin="8,141,0,0" VerticalAlignment="Top" x:Name="createStudentDOBLabel" FontWeight="Normal"/>
                            <TextBox HorizontalAlignment="Left" GotKeyboardFocus="dobTxt_GotKeyboardFocus" LostKeyboardFocus="dobTxt_LostKeyboardFocus"  Margin="140,145,0,0" x:Name="createStudentDOBTxt" TextWrapping="Wrap" Text="DD/MM/YYYY" VerticalAlignment="Top" RenderTransformOrigin="0.427,0.508" Width="206" FontWeight="Normal"/>
                            <Label Content="Course Code:" Height="30" HorizontalAlignment="left" x:Name="createStudentCourseLabel" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment" Margin="8,174,0,0" FontWeight="Normal" />
                            <ComboBox ItemsSource="{Binding}" DisplayMemberPath="name" SelectedValuePath="idCourse"  Height="23" HorizontalAlignment="Left" x:Name="courseBox" VerticalAlignment="Top" Width="207" d:LayoutOverrides="VerticalAlignment" Margin="140,181,0,0" />
                            <Label Content="*" Foreground="Red" HorizontalAlignment="Left" Margin="79,42,0,0" VerticalAlignment="Top" RenderTransformOrigin="2.3,0.586"/>
                            <Label Content="*" Foreground="Red" HorizontalAlignment="Left" Margin="67,106,0,0" VerticalAlignment="Top" RenderTransformOrigin="2.3,0.586"/>
                            <Label Content="*" Foreground="Red" HorizontalAlignment="Left" Margin="48,137,0,0" VerticalAlignment="Top" RenderTransformOrigin="2.3,0.586"/>
                            <Label Visibility="Hidden" x:Name="createFirstnameError" FontSize="10" Foreground="Red" FontStyle="Italic"  Content="You must enter a firstname" HorizontalAlignment="Left" Margin="136,62,0,0" VerticalAlignment="Top"/>
                            <Label Visibility="Hidden" x:Name="createLastnameError" FontSize="10" Foreground="Red" FontStyle="Italic"  Content="You must enter a lastname" HorizontalAlignment="Left" Margin="136,128,0,0" VerticalAlignment="Top"/>
                            <Label Visibility="Hidden" x:Name="createDOBError" FontSize="10" Foreground="Red" FontStyle="Italic"  Content="You must enter a date of birth" HorizontalAlignment="Left" Margin="136,163,0,0" VerticalAlignment="Top"/>
                        </Grid>
                    </GroupBox>
                    <GroupBox BorderBrush="Teal" Header="Address (Term Time)" Margin="450,58,0,0" x:Name="addressTermTime" FontWeight="Bold" HorizontalAlignment="Left" Width="342" Height="180" VerticalAlignment="Top">
                        <Grid>
                            <Label Content="Line 1:" HorizontalAlignment="left" Margin="8,9,0,0" x:Name="createStudentTTLine1Label" FontWeight="Normal" Height="30" VerticalAlignment="Top" />
                            <TextBox Height="23" Margin="82,16,0,0" x:Name="createStudentTTLine1Txt" VerticalAlignment="Top" d:LayoutOverrides="GridBox" HorizontalAlignment="Left" Width="210" />
                            <Label Content="Line 2:" Height="30" HorizontalAlignment="left" Margin="8,47,0,0" x:Name="createStudentTTLine2Label" VerticalAlignment="Top" FontWeight="Normal" />
                            <TextBox Height="23" HorizontalAlignment="Left" Margin="82,54,0,0" x:Name="createStudentTTLine2Txt" VerticalAlignment="Top" Width="210" />
                            <Label Content="City:" Height="30" HorizontalAlignment="left" Margin="8,81,0,0" x:Name="createStudentTTCityLabel" VerticalAlignment="Top" FontWeight="Normal" />
                            <TextBox Height="23" HorizontalAlignment="Left" Margin="82,88,0,0" x:Name="createStudentTTCityTxt" VerticalAlignment="Top" Width="210" d:LayoutOverrides="GridBox" />
                            <Label Content="Postcode:" Height="30" HorizontalAlignment="left" Margin="8,116,0,0" x:Name="createStudentTTPostcodeLabel" VerticalAlignment="Top" FontWeight="Normal" />
                            <TextBox Height="23" HorizontalAlignment="Left" Margin="82,122,0,0" x:Name="createStudentTTPostcodeTxt" VerticalAlignment="Top" Width="210" d:LayoutOverrides="GridBox" />
                            <Label Content="*" Foreground="Red" HorizontalAlignment="Left" Margin="51,6,0,0" VerticalAlignment="Top" RenderTransformOrigin="2.3,0.586"/>
                            <Label Content="*" Foreground="Red" HorizontalAlignment="Left" Margin="35,79,0,0" VerticalAlignment="Top" RenderTransformOrigin="2.3,0.586"/>
                            <Label Content="*" Foreground="Red" HorizontalAlignment="Left" Margin="66,111,0,0" VerticalAlignment="Top" RenderTransformOrigin="2.3,0.586"/>
                            <Label Visibility="Hidden" x:Name="createLine1Error" FontSize="10" Foreground="Red" FontStyle="Italic"  Content="You must enter an address line 1" HorizontalAlignment="Left" Margin="79,34,0,0" VerticalAlignment="Top"/>
                            <Label Visibility="Hidden" x:Name="createCityError" FontSize="10" Foreground="Red" FontStyle="Italic"  Content="You must enter a City" HorizontalAlignment="Left" Margin="79,105,0,0" VerticalAlignment="Top"/>
                            <Label Visibility="Hidden" x:Name="createPostCodeError" FontSize="10" Foreground="Red" FontStyle="Italic"  Content="You must enter a postcode" HorizontalAlignment="Left" Margin="79,137,0,-6" VerticalAlignment="Top"/>
                        </Grid>
                    </GroupBox>
                    <GroupBox BorderBrush="Teal" FontWeight="Bold" Header="Address (Non-Term if different)" HorizontalAlignment="Left" Margin="450,245,0,0" x:Name="groupBox2" Width="344" Height="171" VerticalAlignment="Top">
                        <Grid>
                            <Label Content="Line 1" Height="30" x:Name="createStudentNTTLine1Label" VerticalAlignment="Top" FontWeight="Normal" HorizontalAlignment="Left" Margin="8,8,0,0" />
                            <Label Content="Line 2" Height="30" x:Name="createStudentNTTLine2Label" VerticalAlignment="Top" FontWeight="Normal" HorizontalAlignment="Left" Margin="8,42,0,0" RenderTransformOrigin="1.064,0.5" />
                            <Label Content="City" Height="30" x:Name="createStudentNTTCityLabel" VerticalAlignment="Top" FontWeight="Normal" HorizontalAlignment="Left" Margin="8,76,0,0" />
                            <Label Content="Postcode" Height="30" HorizontalAlignment="left" x:Name="createStudentNTTPostcodeLabel" VerticalAlignment="Top" FontWeight="Normal" d:LayoutOverrides="HorizontalAlignment" Margin="8,106,0,0" />
                            <TextBox Height="23" Margin="106,15,0,0" x:Name="createStudentNTTLine1Txt" VerticalAlignment="Top" HorizontalAlignment="Left" Width="210" />
                            <TextBox Height="23" x:Name="createStudentNTTLine2Txt" VerticalAlignment="Top" HorizontalAlignment="Left" Width="210" Margin="106,49,0,0" />
                            <TextBox Height="23"  x:Name="createStudentNTTCityTxt" VerticalAlignment="Top" HorizontalAlignment="Left" Width="210" Margin="106,83,0,0" />
                            <TextBox Height="23"  x:Name="createStudentNTTPostcodeTxt" VerticalAlignment="Top" HorizontalAlignment="Left" Width="210" Margin="106,113,0,0" />
                        </Grid>
                    </GroupBox>
                    <GroupBox BorderBrush="Teal" FontWeight="Bold" Header="Contact" Height="171" HorizontalAlignment="Left" Margin="820,58,0,0" x:Name="studentContactGroupBox" VerticalAlignment="Top" Width="380" d:LayoutOverrides="HorizontalAlignment, VerticalAlignment">
                        <Grid>
                            <Label Content="Home Number:" FontWeight="Normal" Height="30" HorizontalAlignment="left" Margin="8,9,0,0" x:Name="createStudentHomeNoLabel" VerticalAlignment="Top" />
                            <TextBox Height="23" Margin="123,16,0,0" x:Name="createStudentHomeNoTxt" VerticalAlignment="Top" d:LayoutOverrides="GridBox" HorizontalAlignment="Left" Width="200" />
                            <Label Content="Mobile Number:" FontWeight="Normal" Height="30" HorizontalAlignment="left" Margin="8,43,0,0" x:Name="createStudentMobNoLabel" VerticalAlignment="Top" />
                            <TextBox Height="23" Margin="123,50,0,0" x:Name="createStudentMobNoTxt" VerticalAlignment="Top" d:LayoutOverrides="GridBox" HorizontalAlignment="Left" Width="200" />
                            <Label Content="Email Address:" FontWeight="Normal" Height="30" HorizontalAlignment="left" x:Name="createStudentEmailLabel" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment" Margin="8,77,0,0" />
                            <TextBox Height="23" HorizontalAlignment="Left" x:Name="createStudentEmailTxt" VerticalAlignment="Top" Width="200" d:LayoutOverrides="VerticalAlignment" Margin="123,84,0,0" />
                            <Label Content="*" Foreground="Red" HorizontalAlignment="Left" Margin="102,5,0,0" VerticalAlignment="Top" RenderTransformOrigin="2.3,0.586"/>
                            <Label Content="WUC Email:" FontWeight="Normal" Height="30" HorizontalAlignment="left" x:Name="createStudentEmailLabel_Copy" VerticalAlignment="Top" Margin="8,108,0,0" d:LayoutOverrides="VerticalAlignment" />
                            <TextBox Height="23" IsEnabled="False" HorizontalAlignment="Left" x:Name="createStudentWUCEmailTxt" VerticalAlignment="Top" Width="200" Margin="123,115,0,0" d:LayoutOverrides="VerticalAlignment" />
                            <Label Visibility="Hidden" x:Name="createPhoneError" FontSize="10" Foreground="Red" FontStyle="Italic"  Content="You must enter a phone number" HorizontalAlignment="Left" Margin="118,32,0,0" VerticalAlignment="Top"/>
                        </Grid>
                    </GroupBox>
                    <Button Content="Cancel" Height="35" Margin="925,234,0,0" x:Name="cancel" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment" RenderTransformOrigin="0.495,0.557" HorizontalAlignment="Left" Width="99" />
                    <Button Foreground="White" Background="Teal" Content="Save" Height="35" x:Name="save" VerticalAlignment="Top" Margin="820,233,0,0" d:LayoutOverrides="VerticalAlignment" Click="create_Click" HorizontalAlignment="Left" Width="100" />
                    <Label Content="*" Foreground="Red" HorizontalAlignment="Left" Margin="10,313,0,0" VerticalAlignment="Top" RenderTransformOrigin="2.3,0.586"/>
                    <Label Content="Notates a required field" HorizontalAlignment="Left" Margin="20,313,0,0" VerticalAlignment="Top"/>
                </Grid>
            </TabItem>
            <TabItem GotFocus="tab_GotFocus" Header="Amend" x:Name="amend" Background="#FFF5F5CB">
                <Grid x:Name="amendGrid">
                    <Label Content="Amend a Student" Height="53" HorizontalAlignment="Left" Margin="8,8,0,0" x:Name="studentAmend" VerticalAlignment="Top" FontWeight="Bold" FontSize="30" Width="268" />
                    <GroupBox Header="Details" HorizontalAlignment="Left" Margin="8,58,0,0" VerticalAlignment="Top" Height="250" Width="392" BorderBrush="Teal">
                        <Grid>
                            <Label Content="Student ID:" Height="30" HorizontalAlignment="left" x:Name="studentIDLabel2" VerticalAlignment="Top" FontWeight="Bold" Foreground="Teal" Width="86" Margin="8,9,0,0" />
                            <TextBox Height="22" KeyUp="studentIDTxtAmend_KeyUp" x:Name="studentIDTxtAmend" VerticalAlignment="Top" HorizontalAlignment="Left" Width="208" Margin="139,17,0,0" />
                            <Label Content="First Name:" Height="28" HorizontalAlignment="Left" Margin="8,43,0,0" x:Name="fNameLabel2" VerticalAlignment="Top" FontSize="14"/>
                            <TextBox Height="23" IsEnabled="False" HorizontalAlignment="Left" Margin="139,48,0,0" x:Name="fNameTxtAmend" VerticalAlignment="Top" Width="207" />
                            <Label Content="Middle Name(s):" Height="28" HorizontalAlignment="Left" x:Name="fNameLabel_Copy2" VerticalAlignment="Top" FontSize="14" Margin="8,75,0,0"/>
                            <TextBox Height="23" IsEnabled="False" HorizontalAlignment="Left"  x:Name="mNameTxtAmend" VerticalAlignment="Top" Width="207" Margin="140,80,0,0" />
                            <Label Content="Surname:" Height="30" HorizontalAlignment="left" x:Name="surnameLabel2" VerticalAlignment="Top" Margin="8,107,0,0" />
                            <TextBox Height="23" IsEnabled="False" HorizontalAlignment="Left" x:Name="surnameTxtAmend" VerticalAlignment="Top" Width="207" Margin="140,114,0,0" />
                            <Label Content="D.O.B:" HorizontalAlignment="Left" Margin="8,141,0,0" VerticalAlignment="Top"/>
                            <TextBox FontWeight="bold" HorizontalAlignment="Left" IsEnabled="False"  Margin="140,145,0,0" x:Name="dobTxtAmend" TextWrapping="Wrap" Text="" VerticalAlignment="Top" RenderTransformOrigin="0.427,0.508" Width="206"/>
                            <Label Content="Course Code:" Height="30" HorizontalAlignment="left" x:Name="label6" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment" Margin="8,174,0,0" />
                            <ComboBox SelectedIndex="0" ItemsSource="{Binding}" IsEnabled="False" DisplayMemberPath="name" SelectedValuePath="idCourse" Height="23" HorizontalAlignment="Left" x:Name="courseBoxAmend" VerticalAlignment="Top" Width="207" d:LayoutOverrides="VerticalAlignment" Margin="140,181,0,0" />
                            <Label Content="*" Foreground="Red" HorizontalAlignment="Left" Margin="77,39,0,0" VerticalAlignment="Top" RenderTransformOrigin="2.3,0.586"/>
                            <Label Content="*" Foreground="Red" HorizontalAlignment="Left" Margin="67,103,0,0" VerticalAlignment="Top" RenderTransformOrigin="2.3,0.586"/>
                        </Grid>
                    </GroupBox>
                    <GroupBox Header="Address (Term Time)" Height="180" Margin="450,58,0,0" x:Name="addressTermTime_Copy" VerticalAlignment="Top" FontWeight="Bold" HorizontalAlignment="Left" Width="342" BorderBrush="Teal">
                        <Grid>
                            <Label Content="Line 1:" HorizontalAlignment="left" Margin="8,9,0,0" x:Name="addressLine1Label1" FontWeight="Normal" Height="30" VerticalAlignment="Top" />
                            <TextBox IsEnabled="False" Height="23" Margin="82,16,0,0" x:Name="ttLine1TxtAmend" VerticalAlignment="Top" d:LayoutOverrides="GridBox" HorizontalAlignment="Left" Width="210" />
                            <Label Content="Line 2:" Height="30" HorizontalAlignment="left" Margin="8,47,0,0" x:Name="addressLine2Label1" VerticalAlignment="Top" FontWeight="Normal" />
                            <TextBox IsEnabled="False" Height="23" HorizontalAlignment="Left" Margin="82,54,0,0" x:Name="ttLine2TxtAmend" VerticalAlignment="Top" Width="210" />
                            <Label Content="City:" Height="30" HorizontalAlignment="left" Margin="8,81,0,0" x:Name="cityLabel1" VerticalAlignment="Top" FontWeight="Normal" />
                            <TextBox IsEnabled="False" Height="23" HorizontalAlignment="Left" Margin="82,88,0,0" x:Name="ttCityTxtAmend" VerticalAlignment="Top" Width="210" d:LayoutOverrides="GridBox" />
                            <Label Content="Postcode:" Height="30" HorizontalAlignment="left" Margin="8,115,0,0" x:Name="postcodeLabel1" VerticalAlignment="Top" FontWeight="Normal" />
                            <TextBox Height="23" IsEnabled="False" HorizontalAlignment="Left" Margin="82,122,0,0" x:Name="postcodeTxtAmend" VerticalAlignment="Top" Width="210" d:LayoutOverrides="GridBox" />
                            <Label Content="*" Foreground="Red" HorizontalAlignment="Left" Margin="45,4,0,0" VerticalAlignment="Top" RenderTransformOrigin="2.3,0.586"/>
                            <Label Content="*" Foreground="Red" HorizontalAlignment="Left" Margin="35,77,0,0" VerticalAlignment="Top" RenderTransformOrigin="2.3,0.586"/>
                            <Label Content="*" Foreground="Red" HorizontalAlignment="Left" Margin="67,109,0,0" VerticalAlignment="Top" RenderTransformOrigin="2.3,0.586"/>
                        </Grid>
                    </GroupBox>
                    <GroupBox FontWeight="Bold" Header="Address (Non-Term if different)" HorizontalAlignment="Left" Margin="450,243,0,0" x:Name="groupBox2_Copy" Width="344" Height="180" VerticalAlignment="Top" BorderBrush="Teal">
                        <Grid>
                            <Label Content="Line 1" Height="30" x:Name="label7" VerticalAlignment="Top" FontWeight="Normal" HorizontalAlignment="Left" Margin="8,8,0,0" />
                            <Label Content="Line 2" Height="30" x:Name="label9" VerticalAlignment="Top" FontWeight="Normal" HorizontalAlignment="Left" Margin="8,42,0,0" RenderTransformOrigin="1.064,0.5" />
                            <Label Content="City" Height="30" x:Name="label10" VerticalAlignment="Top" FontWeight="Normal" HorizontalAlignment="Left" Margin="8,76,0,0" />
                            <Label Content="Postcode" Height="30" HorizontalAlignment="left" x:Name="label11" VerticalAlignment="Top" FontWeight="Normal" d:LayoutOverrides="HorizontalAlignment" Margin="8,110,0,0" />
                            <TextBox Height="23" IsEnabled="False" Margin="106,15,0,0" x:Name="nttLine1TxtAmend" VerticalAlignment="Top" HorizontalAlignment="Left" Width="210" />
                            <TextBox Height="23" IsEnabled="False" x:Name="textBox2Amend" VerticalAlignment="Top" HorizontalAlignment="Left" Width="210" Margin="106,49,0,0" />
                            <TextBox Height="23"  IsEnabled="False" x:Name="textBoxAmend" VerticalAlignment="Top" HorizontalAlignment="Left" Width="210" Margin="106,83,0,0" />
                            <TextBox Height="23" IsEnabled="False"  x:Name="textBox3Amend" VerticalAlignment="Top" HorizontalAlignment="Left" Width="210" Margin="106,117,0,0" />
                        </Grid>
                    </GroupBox>
                    <GroupBox FontWeight="Bold" Header="Contact" Height="139" HorizontalAlignment="Left" Margin="836,58,0,0" x:Name="telephoneGroupBox_Copy" VerticalAlignment="Top" Width="380" d:LayoutOverrides="HorizontalAlignment, VerticalAlignment" BorderBrush="Teal">
                        <Grid>
                            <Label Content="Home Number:" FontWeight="Normal" Height="30" HorizontalAlignment="left" Margin="8,9,0,0" x:Name="homeNoLabel1" VerticalAlignment="Top" />
                            <TextBox Height="23" IsEnabled="False" Margin="123,16,0,0" x:Name="textBox4Amend" VerticalAlignment="Top" d:LayoutOverrides="GridBox" HorizontalAlignment="Left" Width="200" />
                            <Label Content="Mobile Number:" FontWeight="Normal" Height="30" HorizontalAlignment="left" Margin="8,43,0,0" x:Name="mobileNoLabel1" VerticalAlignment="Top" />
                            <TextBox Height="23" IsEnabled="False" Margin="123,50,0,0" x:Name="textBox5Amend" VerticalAlignment="Top" d:LayoutOverrides="GridBox" HorizontalAlignment="Left" Width="200" />
                            <Label Content="Email Address:" FontWeight="Normal" Height="30" HorizontalAlignment="left" x:Name="emailLabel1" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment" Margin="8,77,0,0" />
                            <TextBox Height="23" IsEnabled="False" HorizontalAlignment="Left" x:Name="emailTxtAmend" VerticalAlignment="Top" Width="200" d:LayoutOverrides="VerticalAlignment" Margin="123,84,0,0" />
                            <Label Content="*" Foreground="Red" HorizontalAlignment="Left" Margin="102,5,0,0" VerticalAlignment="Top" RenderTransformOrigin="2.3,0.586"/>
                        </Grid>
                    </GroupBox>
                    <GroupBox Header="Student Record Status" Height="144" Margin="836,210,0,0" x:Name="AstatusBox" VerticalAlignment="Top" FontSize="16" FontWeight="Bold" HorizontalAlignment="Left" Width="380">
                        <Grid Background="Teal" UseLayoutRounding="True">
                            <ComboBox SelectedIndex="0" Height="25" IsEnabled="False" HorizontalAlignment="Left" Margin="134,10,0,0" x:Name="Astatus" VerticalAlignment="Top" Width="170">
                                <ComboBoxItem Content="Provisional"/>
                                <ComboBoxItem Content="Live"/>
                                <ComboBoxItem Content="Dormant"/>
                            </ComboBox>
                            <Label Content="Reason" HorizontalAlignment="left" Margin="21,51,0,28" x:Name="AreasonLabel" FontWeight="Normal" Width="79" FontSize="14" Foreground="White" />
                            <TextBox Height="43" IsEnabled="False" HorizontalAlignment="Left" Margin="117,53,0,0" x:Name="AreasonTxt" VerticalAlignment="Top" Width="193" />
                            <Label Content="(if Dormant):" Height="28" HorizontalAlignment="Left" Margin="10,73,0,0" x:Name="AdormantLabel" VerticalAlignment="Top" FontWeight="Normal" FontSize="14" Foreground="White" FontStyle="Italic" />
                        </Grid>
                    </GroupBox>
                    <Button Content="Cancel" Height="36" Margin="958,388,0,0" x:Name="Acancel" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment" HorizontalAlignment="Left" Width="100" Click="Acancel_Click" />
                    <Button Content="Save" Height="35" x:Name="Asave" VerticalAlignment="Top" Margin="836,388,0,0" d:LayoutOverrides="VerticalAlignment" HorizontalAlignment="Left" Width="100" Background="Teal" Foreground="White" Click="Asave_Click" />
                    <CheckBox Content="Notify Student of changes (by Email)" FontWeight="Bold" HorizontalAlignment="Left" Margin="836,362,0,0" VerticalAlignment="Top"/>
                    <Label Content="*" Foreground="Red" HorizontalAlignment="Left" Margin="10,313,0,0" VerticalAlignment="Top" RenderTransformOrigin="2.3,0.586"/>
                    <Label Content="Notates a required field" HorizontalAlignment="Left" Margin="20,313,0,0" VerticalAlignment="Top"/>
                </Grid>
            </TabItem>
            <TabItem GotFocus="tab_GotFocus" Header="Archive" x:Name="archive" Background="#FFF5F5CB">
                <Grid x:Name="archiveGrid">
                    <Label Content="Archive a Student" Height="46" HorizontalAlignment="Left" Margin="8,8,0,0" x:Name="enrolCreation_Copy" VerticalAlignment="Top" FontWeight="Bold" FontSize="30" Width="268" />
                    <GroupBox Header="Details" HorizontalAlignment="Left" Margin="8,58,0,0" VerticalAlignment="Top" Height="250" Width="387" BorderBrush="Teal">
                        <Grid>
                            <Label Content="Student ID:" Height="30" HorizontalAlignment="left" x:Name="studentIDLabel3" VerticalAlignment="Top" FontWeight="Bold" Foreground="Teal" Width="86" Margin="8,9,0,0" />
                            <TextBox Height="22" x:Name="studentIDTxtArchive" VerticalAlignment="Top" KeyUp="studentIDTxtArchive_KeyUp" HorizontalAlignment="Left" Width="208" Margin="138,15,0,0" />
                            <Label Content="First Name:" Height="28" HorizontalAlignment="Left" Margin="8,43,0,0" x:Name="fNameLabel3" VerticalAlignment="Top" FontSize="14"/>
                            <TextBox Height="23" IsEnabled="False" HorizontalAlignment="Left" Margin="139,48,0,0" x:Name="fNameTxtArchive" VerticalAlignment="Top" Width="207" />
                            <Label Content="Middle Name(s):" Height="28" HorizontalAlignment="Left" x:Name="fNameLabel_Copy3" VerticalAlignment="Top" FontSize="14" Margin="8,75,0,0"/>
                            <TextBox Height="23" IsEnabled="False" HorizontalAlignment="Left"  x:Name="mNameTxtArchive" VerticalAlignment="Top" Width="207" Margin="140,80,0,0" />
                            <Label Content="Surname:" Height="30" HorizontalAlignment="left" x:Name="surnameLabel3" VerticalAlignment="Top" Margin="8,107,0,0" />
                            <TextBox Height="23" IsEnabled="False" HorizontalAlignment="Left" x:Name="surnameTxtArchive" VerticalAlignment="Top" Width="207" Margin="140,114,0,0" />
                            <Label Content="D.O.B:" HorizontalAlignment="Left" Margin="8,141,0,0" VerticalAlignment="Top"/>
                            <TextBox x:Name="dobTxtArchive" HorizontalAlignment="Left" IsEnabled="False" Margin="140,145,0,0" TextWrapping="Wrap" VerticalAlignment="Top" RenderTransformOrigin="0.427,0.508" Width="206"/>
                            <Label Content="Course Code:"  Height="30" HorizontalAlignment="left" x:Name="label12" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment" Margin="8,174,0,0" />
                            <TextBox IsEnabled="False" Height="23" HorizontalAlignment="Left" x:Name="courseTxtArchive" VerticalAlignment="Top" Width="207" d:LayoutOverrides="VerticalAlignment" Margin="140,181,0,0" />
                        </Grid>
                    </GroupBox>
                    <GroupBox Header="Status" HorizontalAlignment="Left" Margin="450,58,0,0" VerticalAlignment="Top" Height="125" Width="370" BorderBrush="Teal">
                        <Grid>
                            <Label Content="Current Status:" Height="30" HorizontalAlignment="left" x:Name="studentIDLabel1_Copy1" VerticalAlignment="Top" FontWeight="Bold" Foreground="Teal" Width="120" Margin="8,9,0,0" />
                            <TextBox HorizontalAlignment="Left" Margin="132,14,0,0" x:Name="currentStatusTxtArchive" TextWrapping="Wrap" IsEnabled="False" VerticalAlignment="Top" Width="207"/>
                            <Button Height="35" Width="100" Content="Archive" Click="BtnArchive_Click"  x:Name="BtnArchive" HorizontalAlignment="Left" Margin="132,48,0,0" VerticalAlignment="Top" Background="Teal" Foreground="White" />
                            <Button Height="35" Width="100" Content="Cancel" Click="CancelBtnArchive_Click"  x:Name="CancelBtnArchive" HorizontalAlignment="Left" Margin="239,48,0,0" VerticalAlignment="Top" />
                        </Grid>
                    </GroupBox>

                </Grid>
            </TabItem>
            <TabItem GotFocus="tab_GotFocus" Header="Enrol" x:Name="enrol" Background="#FFF5F5CB">
                <Grid x:Name="enrolGrid">
                    <Label Content="Enrol a Student" Height="46" HorizontalAlignment="Left" Margin="8,8,0,0" x:Name="enrolCreation" VerticalAlignment="Top" FontWeight="Bold" FontSize="30" Width="268" />
                    <GroupBox Header="Details" HorizontalAlignment="Left" Margin="8,58,0,0" VerticalAlignment="Top" Height="250" Width="387" BorderBrush="Teal">
                        <Grid>
                            <Label Content="Student ID:" Height="30" HorizontalAlignment="left" x:Name="studentIDLabel1" VerticalAlignment="Top" FontWeight="Bold" Foreground="Teal" Width="86" Margin="8,9,0,0" />
                            <TextBox Height="22" x:Name="studentIDTxtEnrol" VerticalAlignment="Top" KeyUp="studentIDTxtEnrol_KeyUp" HorizontalAlignment="Left" Width="208" Margin="138,15,0,0" />
                            <Label Content="First Name:" Height="28" HorizontalAlignment="Left" Margin="8,43,0,0" x:Name="fNameLabel1" VerticalAlignment="Top" FontSize="14"/>
                            <TextBox Height="23" IsEnabled="False" HorizontalAlignment="Left" Margin="139,48,0,0" x:Name="fNameTxtEnrol" VerticalAlignment="Top" Width="207" />
                            <Label Content="Middle Name(s):" Height="28" HorizontalAlignment="Left" x:Name="fNameLabel_Copy1" VerticalAlignment="Top" FontSize="14" Margin="8,75,0,0"/>
                            <TextBox Height="23" IsEnabled="False" HorizontalAlignment="Left"  x:Name="mNameTxtEnrol" VerticalAlignment="Top" Width="207" Margin="140,80,0,0" />
                            <Label Content="Surname:" Height="30" HorizontalAlignment="left" x:Name="surnameLabel1" VerticalAlignment="Top" Margin="8,107,0,0" />
                            <TextBox Height="23" IsEnabled="False" HorizontalAlignment="Left" x:Name="surnameTxtEnrol" VerticalAlignment="Top" Width="207" Margin="140,114,0,0" />
                            <Label Content="D.O.B:" HorizontalAlignment="Left" Margin="8,141,0,0" VerticalAlignment="Top"/>
                            <TextBox x:Name="dobTxtEnrol" HorizontalAlignment="Left" IsEnabled="False" Margin="140,145,0,0" TextWrapping="Wrap" VerticalAlignment="Top" RenderTransformOrigin="0.427,0.508" Width="206"/>
                            <Label Content="Course Code:"  Height="30" HorizontalAlignment="left" x:Name="label4" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment" Margin="8,174,0,0" />
                            <TextBox IsEnabled="False" Height="23" HorizontalAlignment="Left" x:Name="courseTxtEnrol" VerticalAlignment="Top" Width="207" d:LayoutOverrides="VerticalAlignment" Margin="140,181,0,0" />
                        </Grid>
                    </GroupBox>
                    <GroupBox Header="Status" HorizontalAlignment="Left" Margin="450,58,0,0" VerticalAlignment="Top" Height="125" Width="370" BorderBrush="Teal">
                        <Grid>
                            <Label Content="Current Status:" Height="30" HorizontalAlignment="left" x:Name="studentIDLabel1_Copy" VerticalAlignment="Top" FontWeight="Bold" Foreground="Teal" Width="120" Margin="8,9,0,0" />
                            <TextBox HorizontalAlignment="Left" Margin="132,14,0,0" x:Name="currentStatusTxt" TextWrapping="Wrap" IsEnabled="False" VerticalAlignment="Top" Width="207"/>
                            <Button Height="35" Width="100" Content="Enrol" x:Name="EnrolBtn" Click="EnrolBtn_Click" HorizontalAlignment="Left" Margin="132,48,0,0" VerticalAlignment="Top" Background="Teal" Foreground="White" />
                            <Button Height="35" Width="100" Content="Cancel" x:Name="CancelEnrolBtn" Click="CancelEnrolBtn_Click" HorizontalAlignment="Left" Margin="239,48,0,0" VerticalAlignment="Top" />
                        </Grid>
                    </GroupBox>
                </Grid>
            </TabItem>
            <TabItem GotFocus="tab_GotFocus" Header="Search" x:Name="search" Background="#FFF5F5CB">
                <Grid x:Name="searchGrid" >
                    <Label Content="Search Students" Height="46" HorizontalAlignment="Left" Margin="8,8,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="30" Width="268" />
                    <GroupBox FontWeight="Bold" Header="Details" HorizontalAlignment="Left" Margin="8,58,0,0" VerticalAlignment="Top" Height="76" Width="449" BorderBrush="Teal">
                        <Grid>
                            <ComboBox x:Name="searchType" HorizontalAlignment="Left" Height="25" SelectedIndex="0" Margin="90,11,0,0" VerticalAlignment="Top" Width="120">
                                <ComboBoxItem Content="Student ID" />
                                <ComboBoxItem Content="First Name" />
                                <ComboBoxItem Content="Last Name" />
                                <ComboBoxItem Content="Date of Birth" />
                            </ComboBox>
                            <TextBox Height="25" x:Name="studentSearch" KeyUp="studentSearch_KeyUp" VerticalAlignment="Top" HorizontalAlignment="Left" Width="208" Margin="222,11,0,0" />
                            <Label Content="Search By" Height="28" HorizontalAlignment="left" x:Name="studentIDLabel_Copy" VerticalAlignment="Top" FontWeight="Bold" Foreground="Teal" Width="86" Margin="8,9,0,0" />
                        </Grid>
                    </GroupBox>
                    <ListBox Height="416" Margin="0,8,8,0" SelectionChanged="resultsBox_SelectionChanged"  VerticalAlignment="Top" x:Name="resultsBox" HorizontalAlignment="Right" Width="739" />
                    <Label Visibility="Hidden" Content="Loading Results, Please Wait..." x:Name="searchLoading" HorizontalAlignment="Left" Margin="263,138,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.419,0.517"/>
                </Grid>
            </TabItem>
        </TabControl>
    </Grid>
</Page>